package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * SysVehicleType generated by hbm2java
 */
@Entity
@Table(name="sys_vehicle_type"
    ,catalog="lmis"
)
public class SysVehicleType  implements java.io.Serializable {


     private Short vehicleTypeNo;
     private SysVehicleType02 sysVehicleType02;
     private SysVehicleType01 sysVehicleType01;
     private String vehicleTypeDescr;
     private Short vehicleType03No;
     private Short vehicleTypeStatusNo;
     private Set<SysVehicleTypeDccNotused> sysVehicleTypeDccNotuseds = new HashSet<SysVehicleTypeDccNotused>(0);
     private Set<SysVehicleRateTmp> sysVehicleRateTmps = new HashSet<SysVehicleRateTmp>(0);

    public SysVehicleType() {
    }

    public SysVehicleType(SysVehicleType02 sysVehicleType02, SysVehicleType01 sysVehicleType01, String vehicleTypeDescr, Short vehicleType03No, Short vehicleTypeStatusNo, Set<SysVehicleTypeDccNotused> sysVehicleTypeDccNotuseds, Set<SysVehicleRateTmp> sysVehicleRateTmps) {
       this.sysVehicleType02 = sysVehicleType02;
       this.sysVehicleType01 = sysVehicleType01;
       this.vehicleTypeDescr = vehicleTypeDescr;
       this.vehicleType03No = vehicleType03No;
       this.vehicleTypeStatusNo = vehicleTypeStatusNo;
       this.sysVehicleTypeDccNotuseds = sysVehicleTypeDccNotuseds;
       this.sysVehicleRateTmps = sysVehicleRateTmps;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="VEHICLE_TYPE_NO", unique=true, nullable=false)
    public Short getVehicleTypeNo() {
        return this.vehicleTypeNo;
    }
    
    public void setVehicleTypeNo(Short vehicleTypeNo) {
        this.vehicleTypeNo = vehicleTypeNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="VEHICLE_TYPE_02_NO")
    public SysVehicleType02 getSysVehicleType02() {
        return this.sysVehicleType02;
    }
    
    public void setSysVehicleType02(SysVehicleType02 sysVehicleType02) {
        this.sysVehicleType02 = sysVehicleType02;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="VEHICLE_TYPE_01_NO")
    public SysVehicleType01 getSysVehicleType01() {
        return this.sysVehicleType01;
    }
    
    public void setSysVehicleType01(SysVehicleType01 sysVehicleType01) {
        this.sysVehicleType01 = sysVehicleType01;
    }

    
    @Column(name="VEHICLE_TYPE_DESCR", length=50)
    public String getVehicleTypeDescr() {
        return this.vehicleTypeDescr;
    }
    
    public void setVehicleTypeDescr(String vehicleTypeDescr) {
        this.vehicleTypeDescr = vehicleTypeDescr;
    }

    
    @Column(name="VEHICLE_TYPE_03_NO")
    public Short getVehicleType03No() {
        return this.vehicleType03No;
    }
    
    public void setVehicleType03No(Short vehicleType03No) {
        this.vehicleType03No = vehicleType03No;
    }

    
    @Column(name="VEHICLE_TYPE_STATUS_NO")
    public Short getVehicleTypeStatusNo() {
        return this.vehicleTypeStatusNo;
    }
    
    public void setVehicleTypeStatusNo(Short vehicleTypeStatusNo) {
        this.vehicleTypeStatusNo = vehicleTypeStatusNo;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysVehicleType")
    public Set<SysVehicleTypeDccNotused> getSysVehicleTypeDccNotuseds() {
        return this.sysVehicleTypeDccNotuseds;
    }
    
    public void setSysVehicleTypeDccNotuseds(Set<SysVehicleTypeDccNotused> sysVehicleTypeDccNotuseds) {
        this.sysVehicleTypeDccNotuseds = sysVehicleTypeDccNotuseds;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysVehicleType")
    public Set<SysVehicleRateTmp> getSysVehicleRateTmps() {
        return this.sysVehicleRateTmps;
    }
    
    public void setSysVehicleRateTmps(Set<SysVehicleRateTmp> sysVehicleRateTmps) {
        this.sysVehicleRateTmps = sysVehicleRateTmps;
    }




}


